package com.yongbao.model.dtomapper;

import com.yongbao.model.domain.DishOrderBookDO;
import com.yongbao.model.request.DishOrderBookRequest;
import com.yongbao.model.vo.DishOrderBookVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author zhanghong
 */
@Mapper(componentModel = "spring")
public interface DishOrderBookDtoMapper {

    DishOrderBookDtoMapper INSTANCE = Mappers.getMapper(DishOrderBookDtoMapper.class);

    /**
    * DO to VO
    * @param dishOrderBookDO
    * @return
    */
    DishOrderBookVO do2VO(DishOrderBookDO dishOrderBookDO);

    /**
     * request to DO
     * @param request
     * @return
     */
    DishOrderBookDO request2DO(DishOrderBookRequest request);
}
